﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.Linq;



namespace eOrdered.Models
{
    public static class mnu_MenuQueries
    {
       
        private static mnu_Menu GetMenu( this Table<mnu_Menu> source, string sName, rest_Restaurant restaurant)
        {
            try
            {
               return source.SingleOrDefault(m => m.MenuName == sName & m.RestaurantID.ToString() == restaurant.RestaurantID.ToString());
            }
            catch (Exception)
            {
                throw;
            }
        }

        private static IQueryable<mnu_Menu> GetAllMenus(eOrderedEntities eteOrderedEntities)
        {
            return eteOrderedEntities.mnu_Menu;
        }

       
    }
}
